﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_MDC : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_MDC", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_MDC", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_MDC", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_MDC", "UserName");

        [Column]
        public string UserFullName { get { return _UserFullName; } set { _UserFullName = value; EntityState.FieldChange("UserFullName"); } }
        private string _UserFullName;
        public static FieldInfo userFullName = new FieldInfo("mdc_MDC", "UserFullName");

        [Column]
        public string Department { get { return _Department; } set { _Department = value; EntityState.FieldChange("Department"); } }
        private string _Department;
        public static FieldInfo department = new FieldInfo("mdc_MDC", "Department");

        [Column]
        public string ApplicationNo { get { return _ApplicationNo; } set { _ApplicationNo = value; EntityState.FieldChange("ApplicationNo"); } }
        private string _ApplicationNo;
        public static FieldInfo applicationNo = new FieldInfo("mdc_MDC", "ApplicationNo");

        [Column]
        public string Actions { get { return _Actions; } set { _Actions = value; EntityState.FieldChange("Actions"); } }
        private string _Actions;
        public static FieldInfo actions = new FieldInfo("mdc_MDC", "Actions");

        [Column]
        public string ActionsName { get { return _ActionsName; } set { _ActionsName = value; EntityState.FieldChange("ActionsName"); } }
        private string _ActionsName;
        public static FieldInfo actionsName = new FieldInfo("mdc_MDC", "ActionsName");

        [Column]
        public string Distribute { get { return _Distribute; } set { _Distribute = value; EntityState.FieldChange("Distribute"); } }
        private string _Distribute;
        public static FieldInfo distribute = new FieldInfo("mdc_MDC", "Distribute");

         [Column]
         public string NPL_Sefi_BOM { get { return _NPL_Sefi_BOM; } set { _NPL_Sefi_BOM = value; EntityState.FieldChange("NPL_Sefi_BOM"); } }
         private string _NPL_Sefi_BOM;
         public static FieldInfo nPL_Sefi_BOM = new FieldInfo("mdc_MDC", "NPL_Sefi_BOM");
        
         [Column]
         public string Change_Modification { get { return _Change_Modification; } set { _Change_Modification = value; EntityState.FieldChange("Change_Modification"); } }
         private string _Change_Modification;
         public static FieldInfo change_Modification = new FieldInfo("mdc_MDC", "Change_Modification");

         [Column]
         public string Sefi_Bom { get { return _Sefi_Bom; } set { _Sefi_Bom = value; EntityState.FieldChange("Sefi_Bom"); } }
         private string _Sefi_Bom;
         public static FieldInfo sefi_Bom = new FieldInfo("mdc_MDC", "Sefi_Bom");

         [Column]
         public string INP { get { return _INP; } set { _INP = value; EntityState.FieldChange("INP"); } }
         private string _INP;
         public static FieldInfo iNP = new FieldInfo("mdc_MDC", "INP");
        
        [Column]
        public string IsShowSAPCode { get { return _IsShowSAPCode; } set { _IsShowSAPCode = value; EntityState.FieldChange("IsShowSAPCode"); } }
        private string _IsShowSAPCode;
        public static FieldInfo isShowSAPCode = new FieldInfo("mdc_MDC", "IsShowSAPCode");

        [Column]
        public string Code_Selected { get { return _Code_Selected; } set { _Code_Selected = value; EntityState.FieldChange("Code_Selected"); } }
        private string _Code_Selected;
        public static FieldInfo code_Selected = new FieldInfo("mdc_MDC", "Code_Selected");

        [Column]
        public string BOM_Selected { get { return _BOM_Selected; } set { _BOM_Selected = value; EntityState.FieldChange("BOM_Selected"); } }
        private string _BOM_Selected;
        public static FieldInfo bOM_Selected = new FieldInfo("mdc_MDC", "BOM_Selected");

        [Column]
        public string IsPackcode { get { return _IsPackcode; } set { _IsPackcode = value; EntityState.FieldChange("IsPackcode"); } }
        private string _IsPackcode;
        public static FieldInfo isPackcode = new FieldInfo("mdc_MDC", "IsPackcode");

        [Column]
        public string IsSefiCode { get { return _IsSefiCode; } set { _IsSefiCode = value; EntityState.FieldChange("IsSefiCode"); } }
        private string _IsSefiCode;
        public static FieldInfo isSefiCode = new FieldInfo("mdc_MDC", "IsSefiCode");

        [Column]
        public string ProductionLine { get { return _ProductionLine; } set { _ProductionLine = value; EntityState.FieldChange("ProductionLine"); } }
        private string _ProductionLine;
        public static FieldInfo productionLine = new FieldInfo("mdc_MDC", "ProductionLine");

        [Column]
        public string Color { get { return _Color; } set { _Color = value; EntityState.FieldChange("ProductionLine"); } }
        private string _Color;
        public static FieldInfo color = new FieldInfo("mdc_MDC", "Color");

        [Column]
        public string TJO_ProductionLine { get { return _TJO_ProductionLine; } set { _TJO_ProductionLine = value; EntityState.FieldChange("TJO_ProductionLine"); } }
        private string _TJO_ProductionLine;
        public static FieldInfo tJO_ProductionLine = new FieldInfo("mdc_MDC", "TJO_ProductionLine");

        [Column]
        public string TJO_Color { get { return _TJO_Color; } set { _TJO_Color = value; EntityState.FieldChange("TJO_Color"); } }
        private string _TJO_Color;
        public static FieldInfo tJO_Color = new FieldInfo("mdc_MDC", "TJO_Color");

        [Column]
        public string rd_HK_ADVE_Biz_Type { get { return _rd_HK_ADVE_Biz_Type; } set { _rd_HK_ADVE_Biz_Type = value; EntityState.FieldChange("rd_HK_ADVE_Biz_Type"); } }
        private string _rd_HK_ADVE_Biz_Type;
        public static FieldInfo rD_HK_ADVE_Biz_Type = new FieldInfo("mdc_MDC", "rd_HK_ADVE_Biz_Type");

        [Column]
        public string rd_Raw_Code { get { return _rd_Raw_Code; } set { _rd_Raw_Code = value; EntityState.FieldChange("rd_Raw_Code"); } }
        private string _rd_Raw_Code;
        public static FieldInfo rD_Raw_Code = new FieldInfo("mdc_MDC", "rd_Raw_Code");

        [Column]
        public string IsIPCode { get { return _IsIPCode; } set { _IsIPCode = value; EntityState.FieldChange("IsIPCode"); } } private string _IsIPCode; public static FieldInfo isIPCode = new FieldInfo("mdc_MDC", "IsIPCode");
        [Column]
        public string IsQuanCode { get { return _IsQuanCode; } set { _IsQuanCode = value; EntityState.FieldChange("IsQuanCode"); } } private string _IsQuanCode; public static FieldInfo isQuanCode = new FieldInfo("mdc_MDC", "IsQuanCode");
        [Column]
        public string IsQualCode { get { return _IsQualCode; } set { _IsQualCode = value; EntityState.FieldChange("IsQualCode"); } } private string _IsQualCode; public static FieldInfo isQualCode = new FieldInfo("mdc_MDC", "IsQualCode");

        [Column]
        public string IsGZ_Selected { get { return _IsGZ_Selected; } set { _IsGZ_Selected = value; EntityState.FieldChange("IsGZ_Selected"); } } private string _IsGZ_Selected; public static FieldInfo isGZ_Selected = new FieldInfo("mdc_MDC", "IsGZ_Selected");
        [Column]
        public string IsSH_Selected { get { return _IsSH_Selected; } set { _IsSH_Selected = value; EntityState.FieldChange("IsSH_Selected"); } } private string _IsSH_Selected; public static FieldInfo isSH_Selected = new FieldInfo("mdc_MDC", "IsSH_Selected");
        [Column]
        public string IsLF_Selected { get { return _IsLF_Selected; } set { _IsLF_Selected = value; EntityState.FieldChange("IsLF_Selected"); } } private string _IsLF_Selected; public static FieldInfo isLF_Selected = new FieldInfo("mdc_MDC", "IsLF_Selected");
        [Column]
        public string IsRadionList_NPL { get { return _IsRadionList_NPL; } set { _IsRadionList_NPL = value; EntityState.FieldChange("IsRadionList_NPL"); } } private string _IsRadionList_NPL; public static FieldInfo isRadionList_NPL = new FieldInfo("mdc_MDC", "IsRadionList_NPL");
        [Column]
        public string DrpPriority { get { return _DrpPriority; } set { _DrpPriority = value; EntityState.FieldChange("DrpPriority"); } } private string _DrpPriority; public static FieldInfo drpPriority = new FieldInfo("mdc_MDC", "DrpPriority");
        [Column]
        public string User_PV { get { return _User_PV; } set { _User_PV = value; EntityState.FieldChange("User_PV"); } } private string _User_PV; public static FieldInfo user_PV = new FieldInfo("mdc_MDC", "User_PV");
        [Column]
        public string User_Finance { get { return _User_Finance; } set { _User_Finance = value; EntityState.FieldChange("User_Finance"); } } private string _User_Finance; public static FieldInfo user_Finance = new FieldInfo("mdc_MDC", "User_Finance");
        [Column]
        public string User_PV1 { get { return _User_PV1; } set { _User_PV1 = value; EntityState.FieldChange("User_PV1"); } } private string _User_PV1; public static FieldInfo user_PV1 = new FieldInfo("mdc_MDC", "User_PV1");
        [Column]
        public string User_Finance1 { get { return _User_Finance1; } set { _User_Finance1 = value; EntityState.FieldChange("User_Finance1"); } } private string _User_Finance1; public static FieldInfo user_Finance1 = new FieldInfo("mdc_MDC", "User_Finance1");
        [Column]
        public string User_PV2 { get { return _User_PV2; } set { _User_PV2 = value; EntityState.FieldChange("User_PV2"); } } private string _User_PV2; public static FieldInfo user_PV2 = new FieldInfo("mdc_MDC", "User_PV2");
        [Column]
        public string User_Finance2 { get { return _User_Finance2; } set { _User_Finance2 = value; EntityState.FieldChange("User_Finance2"); } } private string _User_Finance2; public static FieldInfo user_Finance2 = new FieldInfo("mdc_MDC", "User_Finance2");
        [Column]
        public string User_PV3 { get { return _User_PV3; } set { _User_PV3 = value; EntityState.FieldChange("User_PV3"); } } private string _User_PV3; public static FieldInfo user_PV3 = new FieldInfo("mdc_MDC", "User_PV3");
        [Column]
        public string User_Finance3 { get { return _User_Finance3; } set { _User_Finance3 = value; EntityState.FieldChange("User_Finance3"); } } private string _User_Finance3; public static FieldInfo user_Finance3 = new FieldInfo("mdc_MDC", "User_Finance3");
        [Column]
        public string Run_ICD_Price { get { return _Run_ICD_Price; } set { _Run_ICD_Price = value; EntityState.FieldChange("Run_ICD_Price"); } } private string _Run_ICD_Price; public static FieldInfo run_ICD_Price = new FieldInfo("mdc_MDC", "Run_ICD_Price");
        [Column]
        public string Run_ICD_Price2 { get { return _Run_ICD_Price2; } set { _Run_ICD_Price2 = value; EntityState.FieldChange("Run_ICD_Price2"); } } private string _Run_ICD_Price2; public static FieldInfo run_ICD_Price2 = new FieldInfo("mdc_MDC", "Run_ICD_Price2");
        [Column]
        public string Production { get { return _Production; } set { _Production = value; EntityState.FieldChange("Production"); } } private string _Production; public static FieldInfo production = new FieldInfo("mdc_MDC", "Production");
        [Column]
        public string User_Marketing_Add_Data { get { return _User_Marketing_Add_Data; } set { _User_Marketing_Add_Data = value; EntityState.FieldChange("User_Marketing_Add_Data"); } } private string _User_Marketing_Add_Data; public static FieldInfo user_Marketing_Add_Data = new FieldInfo("mdc_MDC", "User_Marketing_Add_Data");
        [Column]
        public string User_Purchasing_Add_Data { get { return _User_Purchasing_Add_Data; } set { _User_Purchasing_Add_Data = value; EntityState.FieldChange("User_Purchasing_Add_Data"); } } private string _User_Purchasing_Add_Data; public static FieldInfo user_Purchasing_Add_Data = new FieldInfo("mdc_MDC", "User_Purchasing_Add_Data");
        [Column]
        public string User_Logistic_Add_Data { get { return _User_Logistic_Add_Data; } set { _User_Logistic_Add_Data = value; EntityState.FieldChange("User_Logistic_Add_Data"); } } private string _User_Logistic_Add_Data; public static FieldInfo user_Logistic_Add_Data = new FieldInfo("mdc_MDC", "User_Logistic_Add_Data");
        [Column]
        public string User_Planning { get { return _User_Planning; } set { _User_Planning = value; EntityState.FieldChange("User_Planning"); } } private string _User_Planning; public static FieldInfo user_Planning = new FieldInfo("mdc_MDC", "User_Planning");

        [Column]
        public string Product_Line { get { return _Product_Line; } set { _Product_Line = value; EntityState.FieldChange("Product_Line"); } } private string _Product_Line; public static FieldInfo product_Line = new FieldInfo("mdc_MDC", "Product_Line");
        [Column]
        public string Try_Product { get { return _Try_Product; } set { _Try_Product = value; EntityState.FieldChange("Try_Product"); } } private string _Try_Product; public static FieldInfo try_Product = new FieldInfo("mdc_MDC", "Try_Product");
        [Column]
        public string Change_KPL { get { return _Change_KPL; } set { _Change_KPL = value; EntityState.FieldChange("Change_KPL"); } } private string _Change_KPL; public static FieldInfo change_KPL = new FieldInfo("mdc_MDC", "Change_KPL");
        [Column]
        public string Affect_APO { get { return _Affect_APO; } set { _Affect_APO = value; EntityState.FieldChange("Affect_APO"); } } private string _Affect_APO; public static FieldInfo affect_APO = new FieldInfo("mdc_MDC", "Affect_APO");
        [Column]
        public string Channel { get { return _Channel; } set { _Channel = value; EntityState.FieldChange("Channel"); } } private string _Channel; public static FieldInfo channel = new FieldInfo("mdc_MDC", "Channel");


        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_MDC", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_MDC", "Status");
    }
}
